//
//  QXNSUrlConnection.h
//  CommunityNannyO2O
//
//  Created by Apple on 15/7/18.
//  Copyright (c) 2015年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@protocol QXNSUrlConnectionDelegate <NSObject>

- (void)GetSuccessResponse:(id)Response andTag:(int)tag ;

- (void)GetSuccessMessage:(id)message andTag:(int)tag;

- (void)GetFailResponse:(id)Response andTag:(int)tag;


@end
@interface QXNSUrlConnection : NSObject<NSURLConnectionDataDelegate>
{
    //    id <QXNSUrlConnectionDelegate> QXUrlDelegate;
}
@property(nonatomic,strong)NSMutableData *responseData;

@property (nonatomic,assign)NSInteger *tag ;


@property (nonatomic, strong) id <QXNSUrlConnectionDelegate> QXUrlDelegate;
-(void)sendAPIWithUrl:(NSURL *)url AndMethod:(NSString *)method AndDataBody:(NSString *)dataBodyString;

@end
